Repository navigation
FOUR-27824 Slow query without indexes - #9100
devmiguelangel wants to merge 4 commits into
Conversation
PR SummaryMedium Risk Overview
Tests: New Reviewed by Cursor Bugbot for commit bc02ca3. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 9169aab. Configure here.
|
|
This validation is adding in this migration for avoid error in this execution because the indexes can be added manually. |






Issue & Reproduction Steps
The Saved Search index migration only recognized indexes by their canonical names. Environments with equivalent DBA-created indexes under different names could receive duplicate indexes. During rollback, index-drop errors were also swallowed, allowing canonical indexes used for foreign-key support to remain in place.
Solution
process_categories (is_system, id)index as coveringprocess_categories (is_system).How to Test
Automated tests were not run per request. The focused coverage is in:
php artisan test tests/Feature/Migrations/AddSavedSearchIndexesTest.phpRelated Tickets & Packages
FOUR-27824
Code Review Checklist